<div class="c-detail-title">
    <div class="u-back clearfix">
        <button ng-click="goBack();" class="btn btn-default">返回</button>
    </div>
    <div class="u-title">
        付款详情
    </div>
</div>

<div class="m-payment-block">
    <div class="wrap-payment-block">
        <form ng-submit="confirmPayment($event)" action="https://my-st1.orangebank.com.cn/corporbank/nonpartyVerify.do" method="post" name="withdrawForm" novalidate="novalidate" target="_blank">
            <h3 class="box-tips-h3">账单信息</h3>
            <ul>
                <li class="lists">
                    <span class="left-text">帐单号：</span>
                    12342534524352879
                </li>
                <li class="lists">
                    <span class="left-text">收款方：</span>
                    {{billInfo.bizCompanyName}}
                </li>
                <li class="lists">
                    <span class="left-text">账单周期：</span>
                    {{billInfo.startEffectTime}} ~ {{billInfo.endEffectTime}}
                </li>
                <li class="lists">
                    <span class="left-text">账单金额：</span>
                    <b class="dark-yellow">{{billInfo.total.toFixed(2)}}</b> {{billInfo.currencyType}}
                </li>
            </ul>

            <h3 class="box-tips-h3">付款金额</h3>
            <ul>
                <li class="lists">
                    <b class="dark-yellow">{{billInfo.actualTotal.toFixed(2)}}</b> {{billInfo.currencyType}}
                </li>
            </ul>

            <h3 class="box-tips-h3">支付方式</h3>
            <ul>
                <li class="lists">
                    <div class="radio radio-single radio-primary">
                        <input value="1" ng-checked="payMethod == '1'" type="radio" name="payMethod" ng-model="payMethod">
                        <label></label>
                    </div>
                    余额支付 &nbsp; 可用：{{availableBalance.toFixed(2)}} {{accountInfo.currency}}
                </li>
                <!--<li class="lists">-->
                    <!--<div class="radio radio-single radio-primary">-->
                        <!--<input value="2" ng-checked="payMethod == '2'" type="radio" name="payMethod" ng-model="payMethod">-->
                        <!--<label></label>-->
                    <!--</div>-->
                    <!--银行支付 &nbsp;-->
                    <!--<div class="select-box" style="display: inline-block;">-->
                        <!--<input ng-click="getBankList()" name="bank" ng-model="bank" id="select-payment-bank"-->
                               <!--readonly="readonly" type="text" value="" class="input-box">-->
                        <!--<i class="select-icon icon-drop-down"></i>-->
                    <!--</div>-->
                <!--</li>-->
                <li class="lists">
                    <span class="left-text">&nbsp;</span>
                    <button class="btn btn-primary" style="margin-top:50px;">确认付款</button>
                </li>
            </ul>

            <input type="hidden" id="name-payment" name="name" value="" />
            <input type="hidden" id="orderid-payment" name="orderid" value="" />
            <input type="hidden" id="type-payment" name="type" value="" />
            <input type="hidden" id="p2PCode-payment" name="P2PCode" value="" />
            <input type="hidden" id="p2PType-payment" name="P2PType" value="" />
            <input type="hidden" id="thirdCustId-payment" name="thirdCustId" value="" />
            <input type="hidden" id="custAccId-payment" name="custAccId" value="" />
            <input type="hidden" id="mobile-payment" name="mobile" value="" />
            <input type="hidden" id="orig-payment" name="orig" value="" />
            <input type="hidden" id="returnurl-payment" name="returnurl" value="" />
            <input type="hidden" id="notifyUrl-payment" name="notifyUrl" value="" />
            <input type="hidden" id="channelType-payment" name="channelType" value="" />
            <input type="hidden" id="idType-payment" name="idType" value="" />
            <input type="hidden" id="idNo-payment" name="idNo" value="" />
            <input type="hidden" id="accNo-payment" name="accNo" value="" />
            <input type="hidden" id="accName-payment" name="accName" value="" />
        </form>
    </div>
</div>

<style type="text/css">
    .c-detail-title .u-title {
        margin: 10px 0px;
        text-align: center;
        font-size: 22px;
    }

    .m-payment-block {
        background: #fff;
        padding: 45px 30px;
        border: 1px solid #ddd;
        min-height: 100%;
    }

    .wrap-payment-block {
        width: 400px;
        margin: 0px auto;
    }

    .wrap-payment-block h3.box-tips-h3 {
        font-size: 18px;
        margin-bottom: 15px;
        margin-top: 15px;
    }

    .wrap-payment-block ul li.lists {
        line-height: 30px;
    }

    .wrap-payment-block ul li.lists .left-text {
        display: inline-block;
        width: 90px;
    }

    .wrap-payment-block ul li.lists .dark-yellow {
        color: #F7A42C;
    }
</style>

<div class="prompt-modal box-tip" ng-show="paymentPrompt">
    <div class="prompt-wrap">
        <div class="bomb-box" style="background: #DFF0D8">
            <div class="title" style="color: #326B31">
                请在新开网银页面完成支付
            </div>
            <div class="operation">
                <button ng-click="paymentResult('failure')" name="prompt-operation" class="btn btn-default success" style="padding:0px;">支付失败，重新支付</button>
                <button ng-click="paymentResult('success')" name="prompt-operation" class="btn btn-primary success" style="padding:0px;">支付成功，查看结果</button>
            </div>
        </div>
    </div>
</div>

<div class="prompt-modal box-tip" ng-show="overagePrompt">
    <div class="prompt-wrap">
        <div class="bomb-box" style="background: #DFF0D8">
            <div class="title" style="color: #326B31">
                账户可用余额不足，请充值后重新支付
            </div>
            <div class="operation">
                <button ng-click="overagePrompt = false" name="prompt-operation" class="btn btn-default success" style="padding:0px;">取消</button>
                <button ng-click="goRechargePage()" name="prompt-operation" class="btn btn-primary success" style="padding:0px;">去充值</button>
            </div>
        </div>
    </div>
</div>

